查询ETC签约状态
通过用户标识、ETC扣费授权协议号查询ETC绑定信息。
请求参数 | 类型 | 描述 |
---|---|---|
openid | string | 用户标识 |
query | object | 声明请求的查询参数 |
sub_mchid | string | 特约商户号 |
plan_id | string | ETC授权扣费模板ID |
plate_number | string | 车牌号 |
php
$instance->v3->vehicle->etc->users->_openid_->contracts->getAsync([
'openid' => 'onqOjjmM1tad-3ROpncN-yUfa6ua',
'query' => [
'sub_mchid' => '1900000109',
'plan_id' => '123',
'plate_number' => '浙ASB945',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/vehicle/etc/users/{openid}/contracts')->getAsync([
'openid' => 'onqOjjmM1tad-3ROpncN-yUfa6ua',
'query' => [
'sub_mchid' => '1900000109',
'plan_id' => '123',
'plate_number' => '浙ASB945',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/vehicle/etc/users/{openid}/contracts']->getAsync([
'openid' => 'onqOjjmM1tad-3ROpncN-yUfa6ua',
'query' => [
'sub_mchid' => '1900000109',
'plan_id' => '123',
'plate_number' => '浙ASB945',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->vehicle->etc->users->_openid_->contracts->get([
'openid' => 'onqOjjmM1tad-3ROpncN-yUfa6ua',
'query' => [
'sub_mchid' => '1900000109',
'plan_id' => '123',
'plate_number' => '浙ASB945',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/vehicle/etc/users/{openid}/contracts')->get([
'openid' => 'onqOjjmM1tad-3ROpncN-yUfa6ua',
'query' => [
'sub_mchid' => '1900000109',
'plan_id' => '123',
'plate_number' => '浙ASB945',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/vehicle/etc/users/{openid}/contracts']->get([
'openid' => 'onqOjjmM1tad-3ROpncN-yUfa6ua',
'query' => [
'sub_mchid' => '1900000109',
'plan_id' => '123',
'plate_number' => '浙ASB945',
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
appid | string | 发起签约的appid |
sp_mchid | string | 服务商商户号 |
sp_openid | string | 用户在发起签约APP的标识 |
sub_appid | string | 子商户appid |
sub_mchid | string | 特约商户号 |
contract_id | string | ETC扣费授权协议号 |
bind_state | string | ETC绑定状态 |
plate_number | string | 绑定的车牌号 |
sub_openid | string | 用户在发起签约子APP的标识 |
参阅 官方文档